Gate ingestion test review

* Dao declaration for gate ingestion
* JDBC Dao implementation
* Memory Dao implementation (for testing)
* Improve gate ingestion test to use mocked alternative if JDBC connection it's not available.