add option to reset_database upon connection
add continous writing test