Fixed bug in Database class

When using the get method and the where value was empty, the where condition was ignored