setup database with requirement