Access to database from controllers