Trim down database