Do not create the db object in the argument list

This causes problems due to improper object scope/initialization order.