Finished "Adding to database" function

In title