move global 'db' to '_db_' to signify background-y-ness
move global extern int 'db_end' to '_db_end_' to also signify ...

background-y-ness
rename a lot of functions
rename a function