Phew! PHP in #heroku doesn't support mysqli extension. Took a whole day to debug the error. remainder to myself: ALWAYS check the logs!