modify some functions
modify functions write_check, write_base, insert_rest
change specification of insert and add new method upsert
add build method
add __init__.py
write test
rewrite search_empty method