get config from mysql