Removed mySQL specific code :(