working on some database stuff