Worked a little on the create db function.