Application.CurrentProject.Name
will give you the name of the current database. Since you get this very easily, I can't understand why you would want to store it in a table but you can put it in an update query like this:
CurrentDB.Execute "UPDATE YourTableName SET YourFieldName =" & Application.CurrentProject.Name