Added support for bulk document uploads
Move old init_db to archive