Linked exercise creation to database