fixed bug in base stat loading and changed the way it picks up the database from the file server