modify db to sql database