Database add function tested

Database data adding is done. Testing required.