Creating basic db and quering it