First spec of API for flash database