Working now with database based config