messed around with database stuff