Updated the SQL queries.

Updated the SQL queries that used the database "vendler." prefix to query tables. This allows for different users with different database names to use the project seamlessly.