Got test db working, automated its creation