Relative Database Path

Changed the database path to be relative instead
of absolute as mentioned in pull request conversation.
If PHP scripts span more than one directory in the future
this will need to be looked at again.
Database Type Consistency

Changed fields of INT to INTEGER for consistency.
It worked before, but this is more appropriate and
easier to read through.