Removed some old SQL related code