attempt at db