Updated to use arraylist for populating database (non-functional)