added some database stuff, testing