Added location suggest and converted some functions to use pdo prepared staments