added crawler write to database with bug