before DB