Added basic php/sql functionality to the server framework.
Added functionality to compute frame count.