added new libs for api and db