altered database stuff