updated data base structure in sql