done with some database stuff