Mysql connection and domains id configuration