Finishing conversion of DB stuff and GPLv3 code. Still some changes left to do though.