Reduced code interdependence by moving server.py-only funtions out of roundwared/db.py and into roundware/lib/server.py.