commiting JDBC and DAO pattern