finished os parsing and wrote sql init db