add a db_init function and move the running (lib_db) code at startup bits into init.php
add a db_init function and move the running (lib_db) code at startup bits into init.php

cooperhewitt/flamework,exflickr/flamework,straup/flamework,cooperhewitt/flamework,straup/flamework,exflickr/flamework,straup/flamework,cooperhewitt/flamework,exflickr/flamework,cooperhewitt/flamework,straup/flamework