Daniel.A- Database updates

Added constraints to story and task tables.