Refacotorig MySql POstgresql end sqlite in DbAdapter class