db insertion modified in case of firstitme.cs and other major modification