storing uid/filename association to db

complete