Added new database loading system and SQL features