got all database stuff set up