Moved php/db declarations to frameworks module.