practice code in order to post to database