Get config from db