Initialize database model. Add ajax post to insert into db