Major code changes, moving to FCoreLib, Database improvements