Anonymous interview question

How to restore database , how to make api