database init and name fixes