split up file and and added db