Read database configuration from file