Create sql database query methods