basic database stuff done