this database is in use by another application

may be you still open it in ArcCatalog while you are working in ArcMap

Just close all the softwares that may use it and try again