allow extendable controllers, fix bug when getting the database based on the version