Added init to Controller
Updated migration to use controller db settings
update pdo prepared statement to only use connection if it exists