engine and db working