Fix log type option for Database class

The log type option was being ignored for the database class.  

Changing the order so that injection of Database comes after the property configuration fixes the issue.