removed repositories, modified versions, added elastic search
modified to allow for a method where you pass in the databasemetadata