Fixed mysql and psql adapters

Sorry, bug fix :(