Fixed MySQL database issues by switching from JDBC to Hibernate for initializing database and not hard coding insert IDs