Renaming database module to logger.
Implemented logger models.
Making logger a Python module.