Commit DB related codes

See the DBUtils.java class for detials