Updated code to use sql database
Added to store all client data into a sql database