App database functions provisionally working.