restructure backend submodule
rename create_tables to initialize
rename close to cleanup
extract actor base class
extract actor factory base class