adding updated sql and adding map pins