Added repo initializer
Added DB tests