Added SQL for the database and fixed posting for sure this time