some database stuff done