fix android API min version to 7
Fix database connection never closed