added basic db stuff and fake db stuff ande more testing stuff