adding in ajax to database