Erros Solved
STILL NEED TO FIX QUERIES