Abstract database from views