Controllers and db config