Test creating and messing with database