split search components away from db components
added search API