added methods to post to DB, select by index and add to DB