Added Logging system, sql initialization in RpgAPI