Added auto_increment to timeslot. Added some functional sql tests.