Support postgres as well as mysql.