speed up database backend