adding version control to database