use mnesia:select instead of find/7 for boss_db:count/3
add boss_db:paginate/{3,4}
add paginate to mnesia driver