added things to join the database entries