Trying to complete the PushToDB class,it's a work in progress.