Added Records History Table on Database

Upcoming issues:
Reset number everyday
Get last queue number from history table within the day