some first working db queries