remove unused mongoose and simple api