use real database on PublicApi

use real database on PublicApi