Moved DB configs into a properties file.

Added config functions for reading and storing references to properties from this file.