flow db helper and flow adapter added and added creating adapter to main activity