Move the resolution of database connection to the boot method.