Implement the database Insert function (unTested )

the whole project is to be tested.