Finished all the previous method skeltons for SQL

Added getConnection() for SQLite

Fixed a glitch in the serialization of ranks