Changes the bootstrap to look for a database config file

Ignores the database.php file so it won't get committed
Creates a template database.php.default file
Fixes passing an integer into pdo->execute

Lazily passing in parameters gets them quoted, limit doesn't work with
quoted numbers. This will fix that.