Fixed the connection to the database. Now it should give better results.