Complete the PostgreSQL and MySQL support, although there are bugs