created the scheme for the database

put in some user logic as well.