Connected exercise entry pages to database