add functions for retrieving extensions from db